package com.bawei.libs_base.net

import com.bawei.libs_base.entity.NoticeBean
import com.bawei.libs_base.entity.Res
import com.bawei.libs_base.entity.UserBean
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {

    @POST("/api/user/login")
    suspend fun login(@Query("username")username:String, @Query("password")password:String): Res<UserBean>

    @GET("/api/announcements")
    suspend fun getNoticeList(@Query("page")page:Int,@Query("size")size:Int): Res<NoticeBean>
}